make a nested list flat python

26

def flatten(t):
    return [item for sublist in t for item in sublist]

Comments

Submit
0 Comments